FROM ubuntu

#时区设置
RUN apt-get update
RUN apt-get install -y tzdata
RUN rm /etc/localtime
RUN ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

RUN mkdir -p /app
RUN mkdir -p /app/config

ADD wechat_token_api /app/wechat_token_api
ADD app.yml  /app/config/app.yml

ENTRYPOINT ["/app/wechat_token_api", "-c", "/app/config/app.yml"]